## -------------------------------------------------- #
## BatistaPereiraBuenoNunesPavao_JEPS_README
## -------------------------------------------------- #

 Date: 2022-12-20

 Authors: Batista Pereira, Bueno, Nunes, and Pavão*

 Title: Inoculation Reduces Misinformation: Experimental Evidence from a Multidimensional Intervention in Brazil
 
Contact Information: 
   Frederico Batista Pereira <fbatist1@uncc.edu>
   Natália S. Bueno <natalia.bueno@emory.edu>
   Felipe Nunes <felipnunes@gmail.com>
   Nara Pavão <narapavao@gmail.com>* 
*corresponding author	 
   
	
 Copyright (c) 2021, under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
 For more information see: http://creativecommons.org/licenses/by-nc-sa/3.0/us/
 All rights reserved. 

## -------------------------------------------------- #

This file describes the contents of the replication archive used to conduct the analyses in the main text and appendix. 


## -------------------------------------------------- #
## install Stata/R and necessary packages for analysis
## -------------------------------------------------- #

open the .R files using RStudio or any text or source code editor 

set the working directory to the folder containing the data files 

The set working directory command in Stata is cd "directory name"

To get the command eclplot in Stata type findit eclplot


install packages if necessary:

	packages <- c("tidyverse", "randomizr", "ggplot2", "xtable")

install.packages(packages)


The attached code makes use of the file structure. As long as the folders are in the working directory the script will find these files and work properly. 

The last version of R and Mac OS-X are:

	R version 3.6.3 (2020-02-29) -- "Holding the Windsock"	Copyright (C) 2020 The R Foundation for Statistical Computing	Platform: x86_64-apple-darwin15.6.0 (64-bit)

The used version of Stata and Mac OS-X are:
	
	Stata 13.1
	Copyright 1985-2013 StataCorp LP 
	Platform: x86-64-apple-sierra10.12.6 (64-bit)



## -------------------------------------------------- #
## computer recommendations
## -------------------------------------------------- #

All models were estimated on a MacBook Pro (Retina, 13-inch, Late 2012), running macOS Catalina (10.15.7).


## -------------------------------------------------- #
# file folder descriptions
## -------------------------------------------------- #
 
Codebooks.pdf --- Codebook describing all variables in the datasets used in the analysis of the manuscript and appendix


Study 1 --- folder contains all the data, codes, and outputs for Study 1:
	study1.do
	study1.dta
	Tex: subfolder containing main and Appendix tables

Study 2 --- folder contains all table outputs as tex files
	_FSP_Merging_Datasets: not replicable (raw data with personal identifiers not available)
	study2.do
	study2.dta
	Tex: subfolder containing main and Appendix tables


Randomization-Test ---- folder containing the following files:
	OnlineAppendix6.R: script for the analysis described in Appendix 6, creating Figure and and Table in that appendix
	outputs: subfolder containing figure and table
	quaest_randomsurvey_results.csv: automated response data created used survey company's algorithm
	

## -------------------------------------------------- #
## notes
## -------------------------------------------------- #

We make the code to join the waves for study 2 available, but not the raw data
since it contains personal identifiers. We make the merged dataset for study 2 available. For study 1, we do not make the code for merging the data available because it was done within Quaest's data management system and it also collected data from Folha de São Paulo for the compliance measures. 

## -------------------------------------------------- #
## end of file
## -------------------------------------------------- #

